import { defineStore } from 'pinia'

const useStore = defineStore('main', {
  state: () => {
    return {
      a: 1
    }
  },
  getters: {
    doubleA: (state) => state.a * 2
  },
  actions: {
    aPlus() {
      this.a++
    }
  }
})
export default useStore
